package com.design.structure.decorator.cainiao;

/**
 * @ProjectName: design
 * @Package: com.design.structure.decorator.cainiao
 * @ClassName: RedShapeDecorator
 * @Author: shenaiguo
 * @Description:
 * @Date: 2020/9/6 0006 15:24
 */
// 步骤4
public class RedShapeDecorator extends ShapeDecorator {
    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        decoratedShape.draw();
        setRedBorder(decoratedShape);
    }

    private void setRedBorder(Shape decoratedShape){
        System.out.println("Border Color: Red");
    }
}
